package com.uit.httt04.duongvanlam.facedetection.service;

import android.app.ActivityManager;
import android.app.ActivityManager.RunningServiceInfo;
import android.content.Context;

public class ClassService
{
	public static boolean isService_AfterBootCompleteRunning(Context context)
	{
		ActivityManager manager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
		for (RunningServiceInfo service : manager.getRunningServices(Integer.MAX_VALUE))
		{
			if (Service_AfterBootCompleted.class.getName().equals(service.service.getClassName()))
			{
				return true;
			}
		}
		return false;
	}
}
